package wiki.hitime.stl.list.util;

import wiki.hitime.stl.list.bean.dto.ServiceGroup;

import java.util.List;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @author zhangdaoping
 * @create 2019-08-19 09:15
 */
public class ServiceGroupCacheUtils {

    private static ConcurrentHashMap<String, List<ServiceGroup>> serviceGroupMap = new ConcurrentHashMap<>(1);


    /**
     * 缓存服务列表
     *
     * @param serviceGroupList
     */
    public static void set(List<ServiceGroup> serviceGroupList) {
        serviceGroupMap.put("serviceGroupList", serviceGroupList);
    }

    /**

     * 获取服务列表
     * @return
     */
    public static List<ServiceGroup> get() {
        return serviceGroupMap.get("serviceGroupList");
    }
}
